""" System imports """
import os,sys
import logging

""" Other modules """

""" Game """

""" Constants """

""" Set up logging """
_log = logging.getLogger("epicquest.settings")
_log.debug("Initializing Settings")

"""
This class servers as the registry for all manner of settings and variables. This is where
information like screen size is stored, as well as enviornment variables. There are two types
of setting that can be registered; System settings and game settings. System settings are 
settings like screen size and game name. Game settings are things like inventory, etc. and
essentially serves as an array of the game state. As such, it can be dumped as a save file.
"""

class SettingsRegistry():
    
    def __init__(self):
        self.settings = {}
        
    def setVal(self, key, val):
        self.settings[key] = val
        
    def getVal(self, key):
        return self.settings[key]
    
    def loadSettings(self, *args, **kwargs):
        filename = kwargs.get('filename', None)
        if filename is None:
            return

        file = open(filename, 'r')